﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using proRFID_DiemDanh.Lop;
using proRFID_DiemDanh.SinhVien;
namespace proRFID_DiemDanh.Lop
{
    public partial class DSSinhVien : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (string.IsNullOrEmpty(Request["ID"]))
                    Response.Redirect("/Lop/Lop.aspx");
                lbTenLop.Text = Request["TenLop"];
                doluoisv(Convert.ToInt32(Request["ID"]));
            }
        }
        void doluoisv(int malop)
        {

            rpt_danhsach.DataSource = mdLop.DSlop_select(malop);
            rpt_danhsach.DataBind();
        }

        protected void cmdBack_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("/Lop/Lop.aspx");
        }

        protected void cmdAdd_Click(object sender, ImageClickEventArgs e)
        {
            Response.Redirect("/Lop/ThemDSLop.aspx?IDlop="+Request["ID"] + "&Tenlop=" + Request["tenlop"]);
        }
       
    }
}